https://glot.io/snippets/g1wsvsp2z4/raw/main.lua